<template>
  <div class="root">
    <div class="flex-row">
      <Icon size="24" type="md-person" />
      <p class="text">发起用户：{{ user }}</p>
    </div>
    <div class="flex-row">
      <Icon size="24" type="md-time" />
      <p class="text">创建时间：{{ createTime }}</p>
    </div>
    <div class="flex-row">
      <Icon size="24" type="md-document" />
      <p class="text">表单类型：{{ type }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    user: {
      type: String,
      default: "username",
    },
    createTime: {
      type: String,
      default: "XXXX-XX-XX XX:XX:XX",
    },
    type: {
      type: String,
      default: "表单类型",
    },
  },
};
</script>

<style scoped>
.root {
  width: 100%;
  height: 45px;
  background: rgba(235, 245, 255, 0.5);
  border-radius: 7px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px 28px;
  color: #1d86f0;
  margin-bottom: 10px;
}
.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.text {
  font-size: 12px;
  font-weight: 400;
  color: #0e1114;
  margin-left: 10px;
}
</style>